package com.wind.taobao.api.trade.item.rest
{
	import com.wind.taobao.api.IPrivateAPI;
	import com.wind.taobao.core.exception.InvalidRequestParametersException;
	import com.wind.taobao.core.util.TaobaoUtils;
	import com.wind.taobao.core.webservice.TaobaoRequest;

	/**
	 * taobao.skus.custom.get Request
	 * @author fxy
	 *
	 */
	public class SkusCustomGetRequest extends TaobaoRequest implements IPrivateAPI
	{
		public override function get method():String
		{
			return "taobao.skus.custom.get"
		}
		/**
		 * Y 	 Sku的外部商家ID
		 */
		[Bindable]
		public var outer_id:String;
		/**
		 * Y 	需返回的字段列表。可选值：Sku结构体中的所有字段；字段之间用“,”隔开
		 */
		[Bindable]
		public var fields:String;

		public override function validate():void
		{
			if (!TaobaoUtils.hasAllValue([outer_id, fields]))
			{
				throw new InvalidRequestParametersException("请求参数[outer_id,fields]不能为空");
			}
		}
	}
}